home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8820 < prev    next >
Encoding:
Text File  |  1996-08-05  |  675 b   |  31 lines

  1. Path: news.cis.okstate.edu!usenet
  2. From: Jim Dugger <jdugger@okstate.edu>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Large buffers and "new"?
  5. Date: Mon, 26 Feb 1996 15:23:42 -0600
  6. Organization: Oklahoma State University
  7. Message-ID: <313224DE.124D@okstate.edu>
  8. References: <4gsr20$sho@newsbf02.news.aol.com>
  9. NNTP-Posting-Host: bedrock.teubner.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0GoldB1 (WinNT; I)
  14.  
  15. HAfshar wrote:
  16. > Hi everyone,
  17. > Does anyone know if you can ( or how to) use "new" to allocate a buffer
  18. > larger than 64k?
  19. > Thanks,
  20. > Harry
  21.  
  22. Easy,
  23.  
  24. char* tmp = new char [ 65536 ];
  25.  
  26. <grin>
  27.